from tkinter import Tk,Canvas,CENTER
X = int(input())
Y = int(input())
N = int(input())
coords = [0*N+X,0*N+Y,10*N+X,0*N+Y,10*N+X,10*N+Y,20*N+X,10*N+Y,20*N+X,0*N+Y,30*N+X,0*N+Y,30*N+X,20*N+Y,0*N+X,20*N+Y]

if min(coords) < 0 or max(coords) > 500:
    print("Размер фигуры превышает максимальный рамер поля")
    exit()
root = Tk()
root.title("марафон")
canvas =  Canvas(bg="white" , width=500)
for i in range(1,50):
    canvas.create_line(10*i,0,10*i,500)
    canvas.create_line(0,10*i,500,10*i)
canvas.pack(anchor= CENTER, expand=1)
canvas.create_polygon(coords,outline="blue",fill= "blue")
root.mainloop()
